package com.org.shichui.service;

import com.org.shichui.dao.PlatfromTokenMapper;
import com.org.shichui.model.BaseResponse;
import com.org.shichui.pojo.PlatfromToken;
import com.org.shichui.pojo.RegForm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RegTelegramService {

    private static final Logger logger = LoggerFactory.getLogger(RegTelegramService.class);

    @Resource
    private PlatfromTokenMapper platfromTokenMapper;

    /**
     * 玉米平台
     * @param regForm
     * @return
     */
    public BaseResponse toYmApi(RegForm regForm) {
        // 先获取玉米平台的token
        PlatfromToken platfromToken = platfromTokenMapper.selectByUaP(regForm.getJiemaAccount(),regForm.getJiemaPassWord(),1);
        if(platfromToken==null){

        }

        return null;
    }
}
